package com.lucky.back.mapper;

import com.lucky.back.pojo.entity.Orders;

import com.lucky.back.pojo.vo.OrderListItenVO;
import com.lucky.back.pojo.vo.OrderStandardVO;

import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrdersMapper {


    int insert(Orders orders);

    int deleteById(Long id);

    int count();

    OrderStandardVO getStandardById(Long id);

    List<OrderListItenVO> list();

    List<OrderListItenVO> selectById(Long id);

    /**
     * 批量删除
     * @param list
     * @return
     */
    int deleteByIds(List<Long> list);

    int insertBatch(List<Orders> ordersList);


    /**
     *
     * @param name
     * @return
     */
    int countByName(String name);
}
